package com.sengled.cloud.biz.union.mgt.model.request;

import com.sengled.cloud.biz.union.mgt.model.vo.PkModulePermissions;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * Created by csolo on 2017/11/8.
 */
@Data
@ApiModel
public class SaveOrUpdateRoleRequest {

    @ApiModelProperty(position = 1, dataType = "Long", value = "角色ID(新增角色不传此参数,修改角色信息此参数必填)")
    private Long roleId;
    @ApiModelProperty(position = 2, dataType = "String", value = "角色code")
    @NotNull
    private String roleCode;
    @ApiModelProperty(position = 3, dataType = "String", value = "角色name")
    @NotNull
    private String roleName;
    @ApiModelProperty(position = 4, dataType = "Integer", value = "角色类型")
    @NotNull
    private Integer roleType;
    @ApiModelProperty(position = 5, dataType = "List", value = "角色和角色下权限列表")
    private List<PkModulePermissions> pkModulePermissionsList;
}
